import {$get,$post} from "../utils/request.js"

export let $dictionaryAdd = async (param)=>{
   let { code, message, data } = await $post('dictionary/add',param)
   return data;
}

export let $dictionaryUpdate = async (param)=>{
   let { code, message, data } = await $post('dictionary/update',param)
   return data;
}

export let $dictionaryList = async (param)=>{
   let { code, message, data } = await $post('dictionary/list',param)
   return data;
}
export let $dictionaryMap = async (param)=>{
   let { code, message, data } = await $post('dictionary/map',param)
   return data;
}

export let $dictionaryCount = async (param)=>{
   let { code, message, data } = await $post('dictionary/count',param)
   return data;
}


export let $listCascade = async (param)=>{
    let { code, message, data } = await $post('dictionary/cascades',param)
    return data;
 }
 